angular.module("userapp")
.controller('registerCtrl', function($scope, $http, $routeParams){

	// $scope.profile = "";

	$scope.submitForm = function() {
		$http({
			url: base_url + 'index.php/user/getInsertUser',
			method: "POST",
			data: $.param({profile: $scope.profile}),
			headers: {'Content-Type': 'application/x-www-form-urlencoded'}
		}).success(function(data, status, header, config) {
			$scope.profile = data;
			console.log(data);
		});
	}
});